package com.lbssoft.gpsbd.service.impl;

import com.lbssoft.gpsbd.dao.LogMapper;
import com.lbssoft.gpsbd.model.Log;
import com.lbssoft.gpsbd.model.LoginLog;
import com.lbssoft.gpsbd.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by nczc on 2018/2/21.
 */
@Service
public class LogServiceImpl implements LogService {
    @Autowired
    public LogMapper logMapper;

    @Override
    public void add(Log log) {
        logMapper.add(log);
    }

    @Override
    public List<Log> list(String where) {
        return logMapper.list(where);
    }

    @Override
    public void addLoginLog(LoginLog log) {
        logMapper.addLoginLog(log);
    }

    @Override
    public List<LoginLog> loginList(long userId) {
        return logMapper.loginList(userId);
    }
}
